package com.example.sunmiv1.room.entity

import io.realm.RealmObject
import io.realm.annotations.PrimaryKey

open class MerchandisePrintEntity : RealmObject {
    @PrimaryKey
    var id: Long = 0

    var userId=""

    var merchandiseId=""
    var merchandiseName=""

    var isPrint=false

    constructor()
    constructor(
        userId: String,
        merchandiseId: String,
        merchandiseName: String,
        isPrint: Boolean
    ) : super() {
        this.userId = userId
        this.merchandiseId = merchandiseId
        this.merchandiseName = merchandiseName
        this.isPrint = isPrint
    }

    fun copy(entity: MerchandisePrintEntity){
        userId=entity.userId
        merchandiseId=entity.merchandiseId
        isPrint=entity.isPrint
    }

}
